import React, {FC} from 'react';
import "./Login.scss";
import {Tabs} from 'antd';
import AccountLogin from "../../components/AccountLogin";
import PhoneLogin from "../../components/PhoneLogin";

const {TabPane} = Tabs;


const Login: FC = () => {
    return (
        <div className="content">
            <video src={require("../../assets/background.mp4")} autoPlay loop muted></video>
            <div className="box">
                <Tabs defaultActiveKey="1" centered>
                    <TabPane tab="账号登录" key="1">
                        <AccountLogin/>
                    </TabPane>
                    <TabPane tab="手机登录" key="2">
                        <PhoneLogin/>
                    </TabPane>
                </Tabs>
            </div>
        </div>
    )
}
export default Login;